From df7a5831d52f9d5179bc08c28c35b22f09319184 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Tue, 11 Nov 2014 23:00:05 -0600 Subject: [PATCH] Add the semicolon missing from the generated main.rs contents. When you run `cargo new project-name --bin`, a project is generated by cargo with a file, `src/main.rs`. This file has a main function with one line that prints hello, world, but a semicolon is missing from the end of the expression. --- src/cargo/ops/cargo_new.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/ops/cargo_new.rs b/src/cargo/ops/cargo_new.rs index e3eda8999..84ea5bda2 100644 --- a/src/cargo/ops/cargo_new.rs +++ b/src/cargo/ops/cargo_new.rs @@ -92,7 +92,7 @@ authors = ["{}"] if opts.bin { try!(File::create(&path.join("src/main.rs")).write_str("\ fn main() { - println!(\"Hello, world!\") + println!(\"Hello, world!\"); } ")); } else { -- 2.30.2